package com.gxy.learn.design.principle.liskov_substitution_principle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 长方形类
 * @author: gaoxueyong
 * @Date: 2022/11/6 12:51
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Rectangle implements Quadrilateral {
    private double length;
    private double width;

    @Override
    public double getLength() {
        return length;
    }

    @Override
    public double getWith() {
        return width;
    }

    public double getWidth() {
        return width;
    }
}
